package com.hsd.znsh.service;

import com.hsd.znsh.entity.Property;
import com.hsd.znsh.entity.SensorType;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SensorTypeService extends BaseService {

    long getSensorTypeListTotalPages(SensorType sensorType);

    List<SensorType> getSensorTypeList(Pageable pageable,SensorType sensorType);

    SensorType getSensorTypeInfo(Integer id);

    void addSensorType(SensorType sensorType,MultipartFile sensorTypeFile,
                       List<Property> propertyList,List<MultipartFile> propertyFile);

    void updateSensorType(SensorType sensorType,MultipartFile sensorTypeFile,
                          List<Property> propertyList,List<MultipartFile> propertyFile);

    void deleteSensorType(Integer id);

    List<SensorType> getAllSensorTypeList();

    List<Property> getPropertyBySensorTypeId(Integer sensorTypeId);

    List<SensorType> getSensorTypeListByHostSn(String hostSn);
}
